import Vue
  from 'vue'
import Router
  from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: "history",
  routes: [
    {
      path: '/',
      name: 'text',
      component: () => import('../views/TextView.vue'),
    },
    {
      path: '/img',
      name: 'img',
      component: () => import('../views/ImgView.vue'),
    },
    {
      path: '/video',
      name: 'video',
      component: () => import('../views/VideoView.vue'),
    },
    {
      path: '/text',
      redirect: '/'
    }
  ]
})
